<template>
    <div class="article-div">
        <Header>
            {{title}}
        </Header>
        <div class="content" v-html="content"></div>
    </div>
</template>

<script>
    import Header from '@/components/header'
    export default {
        components:{
            Header
        },
        data(){
            return{
                title:'',
                type:'',
                content:'',
            }
        },
        created() {
            this.$http.post('common/getArticle',{article_id:3}).then((res)=>{
                if(res.code == 200){
                    this.title = res.data.name;
                    this.content = res.data.content;
                }
            })
        },
        mounted(){

        }
    }
</script>

<style lang="less" scoped>
    .article-div{
        .content{
            margin-top: 60px;
            padding: 0 15px;
        }
    }

</style>